﻿<html xmlns="http://www.w3.org/1999/xhtml">
 

<head>
 

<title>9酷影音</title>
 

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
 

<style type="text/css">
 

html, body { height:100%; margin:0; padding:0; text-align:center; background:#181818; }
 

</style>
 

</head>
 

<body>
 

<script type="text/javascript" src="cmp.js"></script>
 

<script type="text/javascript" src="wmp.js"></script>
 

<div id="cmp_area" style="position:relative;width:100%;height:100%;margin:0px auto;"></div>
 

<script language="JavaScript"> 

var cmpo,wmpo;
 

//定义getElementById到简便函数$
 

function $(id) { return document.getElementById(id); }
 

//cmp回调函数，即cmp第一次加载完成时调用，将对wmp进行初始化操作
 

function cmp_loaded(key) {
 

        //获取cmp对象
 

        cmpo = CMP.get("cmp");
 

        if (!cmpo) {
 

                alert("CMP初始化错误");
 

                return;        

        }
 

        //初始化
 

        if (WMP) {
 

                WMP.init(key, cmpo);
 

        } else {
 

                alert("WMP类错误");        

        }
 

}
 

        var htm = CMP.create("cmp", "100%", "100%", "play.swf", "skins/eutv.csf&auto_play=1&play_id=1&api=cmp_loaded", {wmode:"opaque"});
 

$("cmp_area").innerHTML = htm; 

</script> 

</body>
 

</html> 